export default Behavior({
    methods: {
        getCredentials() {
            return new Promise(async (resolve, reject) => {
                const response = await this.$_server("cosAuth");
                let { data } = response;
                if (data.code !== 200) {
                    reject(data);
                }
                resolve(data.data);
            });
        },
    },
});
